package com.example.administrator.lifetest;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;

/**
 * Created by Administrator on 2017/9/21.
 */

public class SecondActivity extends Activity {
    static  final String LIFT_TAG="LogActivity";

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_second);
        Log.v(LIFT_TAG,"SecondActivity --->onCreate");
    }


    @Override
    protected void onPostResume() {
        super.onPostResume();
        Log.v(LIFT_TAG,"SecondActivity --->onResume");
    }

    @Override
    protected void onStart() {
        super.onStart();
        Log.v(LIFT_TAG,"SecondActivity --->onStart");
    }

    @Override
    protected void onRestart() {
        super.onRestart();
        Log.v(LIFT_TAG,"SecondActivity --->onRestart");
    }

    @Override
    protected void onStop() {
        super.onStop();
        Log.v(LIFT_TAG,"SecondActivity --->onStop");
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        Log.v(LIFT_TAG,"SecondActivity --->onDestory");
    }

    protected void onPause(){
        super.onPause();
        Log.v(LIFT_TAG,"SecondActivity --->onPause");
    }
}
